package com.wu.store.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;

@Data
public class Goods {
	private Long id;
	private Long categoryId;
	private String name;
	private String categoryName;
	private Float price;
	private int status;
	private String img;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss", iso = DateTimeFormat.ISO.DATE_TIME)
	private Date createTime;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss", iso = DateTimeFormat.ISO.DATE_TIME)
	private Date updateTime;
	private int sellCount;

	private Float paramsValue;

	private Long paramsId;
	private String paramsName;
	private Long brandId;
	private String brandName;

	private Integer cartCount;
}
